package com.example.string.unit5;

/**
 * @author ASUS
 */
public class StringReverseExample {
    public static void main(String[] args) {
        String string = "runoob";

        String reverse = new StringBuffer(string).reverse().toString();
        System.out.println("字符串反转前："+string);
        System.out.println("字符串反转后："+reverse);
    }
}
